package com.example.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Pest{

    private Integer id;

    private String name;

    private String basicInformation;//基本信息

    private String morphologicalCharacteristics;//形态特征

    private String livingHabits;//形态特征

    private String occurrencePattern;//发生规律

    private String hazardCharacteristics;//危害特点

    private String controlMethods;//防治方法

    private List<String> categories;

    private String category;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate updateTime;


}
